<?
if($_GET['act'] == "yes")
{
header('Content-type: image/gif');
$im = imagecreate(60,22);
//$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
//$chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
$chars = '0123456789';
$str_a = $chars{mt_rand(0,9)};
$str_b = $chars{mt_rand(0,9)};
$str_c = $chars{mt_rand(0,9)};
$str_d = $chars{mt_rand(0,9)};
$string = $str_a.$str_b.$str_c.$str_d;
//$bg = imagecolorallocate($im, 250, 250, 159);

$bg = imagecolorallocate($im, 230, 250, 205);
$font_color = imagecolorallocate($im, mt_rand(0,150),mt_rand(0,150),mt_rand(0,150));
imagestring($im, mt_rand(3,5), mt_rand(0,5), mt_rand(0,5), $str_a, $font_color);
imagestring($im, mt_rand(3,5), mt_rand(15,25), mt_rand(0,5), $str_b, $font_color);
imagestring($im, mt_rand(3,5), mt_rand(30,40), mt_rand(0,5), $str_c, $font_color);
imagestring($im, mt_rand(3,5), mt_rand(45,50), mt_rand(0,5), $str_d, $font_color);
for ($i=1; $i<=5; $i++) 
{ 
        imagestring($im,mt_rand(0,5),mt_rand(-5,63),mt_rand(-5,23),".",imageColorAllocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255)));
}
imagegif($im);
session_start();
$_SESSION['auth'] = $string;
}
?>
